package org.rainbowinverted.charging.common.core;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 分页模型
 * @author huaiping
 */
@Data
public class PageModel implements Serializable {
    @Serial
    private static final long serialVersionUID = 908205717208724173L;

    public final static String ASC = "asc";
    public final static String DESC = "desc";
    private Integer page;
    private Integer size;
    /**
     * 排序字段
     */
    private String sortField;
    /**
     * 排序方式
     */
    private String orderType;

    public PageModel(Integer page, Integer size, String sortField, String orderType) {
        this.page = page;
        this.size = size;
        this.sortField = sortField;
        this.orderType = orderType;
    }

    public PageModel() {
    }
}
